package com.cpd.blog.common.constant;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * @Author: sun_zhaoyan
 * @Date: 2022/04/28/16:53
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class RedisTime {

    public static final long FOREVER = -1L;
    public static final long ONE_SEC = 1L;
    public static final long FIVE_SEC = ONE_SEC * 5;
    public static final long FOUR_SEC = ONE_SEC * 4;
    public static final long TEN_SEC = ONE_SEC * 10;

    public static final long QUARTER_MIN = ONE_SEC * 15;
    public static final long HALF_MIN = ONE_SEC * 30;
    public static final long ONE_MIN = ONE_SEC * 60;
    public static final long TWO_MIN = ONE_MIN * 2;
    public static final long THREE_MIN = ONE_MIN * 3;
    public static final long FIVE_MIN = ONE_MIN * 5;
    public static final long TEN_MIN = ONE_MIN * 10;

    public static final long QUARTER_HOUR = ONE_MIN * 15;
    public static final long HALF_HOUR = ONE_MIN * 30;
    public static final long ONE_HOUR = ONE_MIN * 60;
    public static final long TWO_HOUR = ONE_HOUR * 2;

    public static final long HALF_DAY = ONE_HOUR * 12;
    public static final long ONE_DAY = ONE_HOUR * 24;
    public static final long TWO_DAY = ONE_DAY * 2;
    public static final long THREE_DAY = ONE_DAY * 3;
    public static final long FIVE_DAY = ONE_DAY * 5;
    public static final long TEN_DAY = ONE_DAY * 10;

    public static final long HALF_MONTH = ONE_DAY * 15;
    public static final long ONE_MONTH = ONE_DAY * 30;
    public static final long TWO_MONTH = ONE_MONTH * 15;
}
